package movieGandalf.logicGuiConnection;

public enum Gender {
	FEMALE("Female"),
	MALE("Male");
	
	private String outString;
	
	private Gender(String outString){
		this.outString = outString;
	}
	
	public String toString(){
		return outString;
	}
	
	public static Gender parseGender(String in){
		for (Gender g : Gender.values()){
			if (g.name().compareToIgnoreCase(in)==0)
				return g;
		}
		
		return null;
	}
}
